package com.wanxi.model;

import java.util.List;
import java.util.Map;

public class Message<T> {
    private Integer code;//状态码
    private List<T> list;//返回的数据集合
    private Map<String ,Object> model;//键值对存取单个数据
    private long total;//返回的数据条数

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Map<String,Object> getModel() {
        return model;
    }

    public void setModel(Map<String,Object> model) {
        this.model = model;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
